
TEST(abstest, abs)
{
	int a = -1;

	EXPECT_EQ(a, -1);

	a = core::abs(a);

	EXPECT_EQ(a, 1);
}

TEST(maxtest, max)
{
	int a = 1;
	int b = 2;

	EXPECT_EQ(core::max(a, b), b);
}

TEST(mintest, min)
{
	int a = 1;
	int b = 2;

	EXPECT_EQ(core::min(a, b), a);
}

TEST(clamptest, clamp)
{
	int a = 1;
	int b = 2;
	
	int c = 3;
	int d = 0;

	EXPECT_EQ(core::clamp(c, a, b), b);
	EXPECT_EQ(core::clamp(d, a, b), a);
}